<?php
	function smallPhoto($photo){
		return substr($photo,0,strrpos($photo,"."))."_sma".strrchr($photo,".");
	}
	function pictureOri($picture){
		$info = '';
      	if ($picture!="")
      	{
      		//图片信息
      		$ext = strstr($picture,".");
			$pictureori = __APP__.'/'.substr($picture,0,strrpos($picture,'.'))."_ori".$ext;
			$arr=getimagesize(strstr($pictureori,'picture'));
			$info = $arr[0].','.$arr[1].','.$pictureori;
      	}
      	else 
      	{
      		$info = '0,0,';
      	}
      	return $info;
	}
?>